package com.greet.mapper;

import com.greet.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    List<DishFlavor> select(DishFlavor dishFlavor);

    void insert(DishFlavor dishFlavor);

    void update(DishFlavor dishFlavor);

    @Delete("delete from dish_flavor where dish_id=#{dishId}")
    void deleteByDishId(Long dishId);

    void deleteByDishIds(List<Long> ids);
}
